// let url='wss://dayss1.vzsite.top/login/88088/0/0/1572520278/99142/610c1f8a228db081051ee1a656315cb1';

var W3CWebSocket = require('websocket').w3cwebsocket;

var client = new W3CWebSocket('ws://121.40.165.18:8800');

client.onerror = function() {
    console.log('Connection Error');
};

client.onopen = function() {
    console.log('WebSocket Client Connected');
};

client.onclose = function() {
    console.log('echo-protocol Client Closed');
};

client.onmessage = function(e) {
    console.log("Received: '" + e.data + "'");
};



